﻿using System.Web.Mvc;

namespace Logistics.Web
{
    public class LogisticsAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Logistics";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute("Logistics_default",
                "express/{controller}/{action}/{id}",
                new { controller = "Home", action = "Index", area = "Logistics", id = UrlParameter.Optional },
                new[] { "Logistics.Web.Controllers" }
            );

            context.MapRoute("Logistics_default2",
                "logistics/{controller}/{action}/{id}",
                new { controller = "Home", action = "Index", area = "Logistics", id = UrlParameter.Optional },
                new[] { "Logistics.Web.Controllers" });
        }
    }
}
